package clam.apps.adu.metier;

public class Etat
{
	private static final String	TAG_ID		= "id";
	private static final String	TAG_LIBELLE	= "libelle";
	private int					id;
	private String				libelle;
	
	public Etat()
	{	
		
	}
	
	public Etat(int id, String libelle)
	{
		this.setId(id);
		this.setLibelle(libelle);
	}
	
	public static Etat findByLibelle(String $libelle)
	{
		ParserJsonJavaManager pjjm = new ParserJsonJavaManager();
		
		return pjjm.findEtatByLibelle($libelle);
	}
	
	/*
	 * (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString()
	{
		return "Etat [id=" + this.id + ", libelle=" + this.libelle + "]";
	}
	
	public int getId()
	{
		return this.id;
	}
	
	public void setId(Integer id)
	{
		this.id = id;
	}
	
	public String getLibelle()
	{
		return this.libelle;
	}
	
	public void setLibelle(String libelle)
	{
		this.libelle = libelle;
	}
	
	/**
	 * @return the tagId
	 */
	public static String getTagId()
	{
		return Etat.TAG_ID;
	}
	
	/**
	 * @return the tagLibelle
	 */
	public static String getTagLibelle()
	{
		return Etat.TAG_LIBELLE;
	}
}
